know which side your bread is buttered
(informal) to know where you can get an advantage for yourself